import request from '@/utils/request'

// 查询仓库日志列表
export function listStoreLog(query) {
  return request({
    url: '/wms/storeLog/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/wms/storeLog/initBean',
        method: 'post'
    })
}

// 查询仓库日志详细
export function getStoreLog(id) {
  return request({
    url: '/wms/storeLog/' + id,
    method: 'get'
  })
}

// 新增仓库日志
export function addStoreLog(data) {
  return request({
    url: '/wms/storeLog',
    method: 'post',
    data: data
  })
}

// 修改仓库日志
export function updateStoreLog(data) {
  return request({
    url: '/wms/storeLog',
    method: 'put',
    data: data
  })
}

// 删除仓库日志
export function delStoreLog(id) {
  return request({
    url: '/wms/storeLog/' + id,
    method: 'delete'
  })
}
